package com.example.user.UserIntegral.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 *
 */
@TableName("user_integral")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Integral {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private String openid;
    /**
     *
     */
    private Integer activity;
    /**
     *
     */
    private Integer consumption;
    /**
     * 订单号
     */
    private String orderid;
    /**
     * 时间
     */
    private String time;


    public Integral(String openid, Integer activity, Integer consumption, String orderid, String time) {
        this.openid = openid;
        this.activity = activity;
        this.consumption = consumption;
        this.orderid = orderid;
        this.time = time;
    }
}
